<?php
namespace RTSCraft\MainBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Mapping\UniqueConstraint;
use Doctrine\ORM\Mapping\OrderBy;

/**
 * @ORM\Entity
 * @ORM\Table(name="Prices")
 */
class Prices
{
  /**
   * @ORM\Id
   * @ORM\Column(type="integer")
   * @ORM\GeneratedValue(strategy="AUTO")
   */
  protected $id;

  /**
   * @ORM\Column(type="integer")
   */
  protected $value;

  /**
   * Get id
   *
   * @return integer 
   */
  public function getId()
  {
    return $this->id;
  }

  /**
   * @ORM\ManyToOne(targetEntity="Ressources")
   */
  protected $ressource;

  /**
   * Get Prices
   *
   * @return Ressources
   */
  public function getRessource()
  {
    return $this->ressource;
  }


    /**
     * Set value
     *
     * @param integer $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * Get value
     *
     * @return integer 
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * Set ressource
     *
     * @param RTSCraft\MainBundle\Entity\Ressources $ressource
     */
    public function setRessource(\RTSCraft\MainBundle\Entity\Ressources $ressource)
    {
        $this->ressource = $ressource;
    }
}